
import { createRouter, createWebHistory } from "vue-router";

const routes = [
    {
        path:"/",
        redirect:"goods",
    },
    {
        name: "goods",
        path: "/goods",
        component: () => import("../detail/Goods.vue"),
        children:[
            {
                path:"son",
                component:()=>import("../detail/goodson.vue"),
            }
        ]
    },
    {
        name: "dis",
        path: "/dis",
        component: () => import("../detail/Dis.vue"),
        
    },
   
    {
        name: "stose",
        path: "/stose",
        component: () => import("../detail/Stose.vue"),
    },
];
const router = createRouter({
    history: createWebHistory(),
    routes,
});
export default router;